﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	xmlns:Cjc_ChromiumBrowser="clr-namespace:Cjc.ChromiumBrowser;assembly=Webnet.ChromiumBrowser"
	xmlns:myBoard_Framework_Effects="clr-namespace:myBoard.Framework.Effects;assembly=myBoard.Framework"
	xmlns:myBoard_Framework_Controls_Navigation="clr-namespace:myBoard.Framework.Controls.Navigation;assembly=myBoard.Framework" xmlns:Custom="http://schemas.sheva.com/winfx/2006/xaml/presentation"
	x:Class="Webnet.MainControl"
	x:Name="UserControl"
	d:DesignWidth="400" d:DesignHeight="300" Width="300" Height="200">
	<UserControl.Resources>
		<Storyboard x:Key="ShowBrowser">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="background" Storyboard.TargetProperty="(UIElement.Effect).(myBoard_Framework_Effects:LightStreakEffect.Scale)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="8" KeySpline="1,0,1,1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_browserContainer" Storyboard.TargetProperty="(UIElement.Effect).(myBoard_Framework_Effects:LightStreakEffect.Scale)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="10"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.8000000" Value="0.34" KeySpline="0,1,1,1"/>
			</DoubleAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_browserContainer" Storyboard.TargetProperty="(UIElement.Visibility)">
				<DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="00:00:00.4000000" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="background" Storyboard.TargetProperty="(UIElement.Opacity)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="1"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.8000000" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="HideBrowser">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="background" Storyboard.TargetProperty="(UIElement.Effect).(myBoard_Framework_Effects:LightStreakEffect.Scale)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="10"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.8000000" Value="0.35" KeySpline="0,1,1,1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_browserContainer" Storyboard.TargetProperty="(UIElement.Effect).(myBoard_Framework_Effects:LightStreakEffect.Scale)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.35"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="10" KeySpline="1,0,1,1"/>
			</DoubleAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_browserContainer" Storyboard.TargetProperty="(UIElement.Visibility)">
				<DiscreteObjectKeyFrame KeyTime="00:00:00.4000000" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="background" Storyboard.TargetProperty="(UIElement.Opacity)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="1"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.8000000" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Resize">
			<DoubleAnimationUsingKeyFrames FillBehavior="Stop" x:Name="WidthAnimation" BeginTime="00:00:00" Storyboard.TargetName="{x:Null}" Storyboard.TargetProperty="(FrameworkElement.Width)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="500" KeySpline="0,1,1,1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames FillBehavior="Stop" x:Name="HeightAnimation" BeginTime="00:00:00" Storyboard.TargetName="{x:Null}" Storyboard.TargetProperty="(FrameworkElement.Height)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="350" KeySpline="0,1,1,1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<DrawingBrush x:Key="WebBrowserMask" Stretch="None" TileMode="None" Viewbox="0,0,100,100" ViewboxUnits="Absolute">
			<DrawingBrush.Drawing>
				<GeometryDrawing Brush="White">
					<GeometryDrawing.Geometry>
						<RectangleGeometry RadiusX="0" RadiusY="0" Rect="0.5,0.5,99,99"/>
					</GeometryDrawing.Geometry>
					<GeometryDrawing.Pen>
						<Pen Brush="Black" DashCap="Flat" EndLineCap="Flat" LineJoin="Miter" MiterLimit="10" StartLineCap="Flat" Thickness="1"/>
					</GeometryDrawing.Pen>
				</GeometryDrawing>
			</DrawingBrush.Drawing>
		</DrawingBrush>
		<Storyboard x:Key="LoadingMode" RepeatBehavior="Forever">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="background" Storyboard.TargetProperty="(UIElement.Effect).(myBoard_Framework_Effects:LightStreakEffect.Scale)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.35"/>
				<SplineDoubleKeyFrame KeyTime="00:00:01" Value="0.5"/>
				<SplineDoubleKeyFrame KeySpline="0,0,1,1" KeyTime="00:00:02" Value="0.35"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</UserControl.Resources>
	<UserControl.Effect>
		<DropShadowEffect ShadowDepth="4" BlurRadius="12" Direction="321" Opacity="0.395"/>
	</UserControl.Effect>
	<Grid>
		<Grid x:Name="_back" d:IsHidden="True">
			<Border BorderBrush="#FF404040" BorderThickness="2" CornerRadius="5">
				<Border.Background>
					<RadialGradientBrush GradientOrigin="0.509,-0.048" RadiusX="0.677" RadiusY="0.765">
						<GradientStop Color="#FFCCCFBE" Offset="0.75"/>
						<GradientStop Color="#FFEEF0E2" Offset="0.151"/>
					</RadialGradientBrush>
				</Border.Background>	
			</Border>
			<Grid>
				<myBoard_Framework_Controls_Navigation:BreadcrumbExplorer x:Name="_configExplorer"/>
			</Grid>
		</Grid>
		<Grid x:Name="_front">
			<Border CornerRadius="5" BorderThickness="1" BorderBrush="#FF888888">
				<Border.Background>
					<LinearGradientBrush EndPoint="0.966,0.5" StartPoint="0.064,0.5">
						<GradientStop Color="#FFC8C9B7" Offset="0.25"/>
						<GradientStop Color="#FFCCCFBE" Offset="0.75"/>
						<GradientStop Color="#FFEEF0E2" Offset="0.5"/>
					</LinearGradientBrush>
				</Border.Background>					
				<Border BorderThickness="1" CornerRadius="5">
					<Border.BorderBrush>
						<RadialGradientBrush RadiusX="0.752" RadiusY="0.752">
							<GradientStop Color="#CAF9F9F9" Offset="0"/>
							<GradientStop Color="#009E9E9E" Offset="1"/>
							<GradientStop Color="#00D9D9D9" Offset="0.108"/>
						</RadialGradientBrush>
					</Border.BorderBrush>
					<Grid>
						<Rectangle Margin="0" StrokeThickness="0" RadiusX="5" RadiusY="5" VerticalAlignment="Bottom" Height="89">
							<Rectangle.OpacityMask>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="#00000000" Offset="0"/>
									<GradientStop Color="White" Offset="1"/>
								</LinearGradientBrush>
							</Rectangle.OpacityMask>
							<Rectangle.Fill>
								<RadialGradientBrush RadiusX="0.423" RadiusY="0.527">
									<GradientStop Color="White" Offset="0.375"/>
									<GradientStop Color="#FFD0D3C9" Offset="0.797"/>
								</RadialGradientBrush>
							</Rectangle.Fill>
						</Rectangle>
						<ResizeGrip x:Name="_resizeGrip" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,5,3" Cursor="SizeAll"/>
						<Border Margin="5,5,5,30" BorderThickness="1" CornerRadius="5">
						<Border.BorderBrush>
									<LinearGradientBrush EndPoint="1.053,0.142" StartPoint="0.041,0.726">
										<GradientStop Color="#FFD2D6BC" Offset="0"/>
										<GradientStop Color="#FFBEC78D" Offset="1"/>
										<GradientStop Color="White" Offset="0.462"/>
									</LinearGradientBrush>
								</Border.BorderBrush>
							<Border BorderThickness="1" CornerRadius="3" BorderBrush="#FF0A0A0A">
								<Border.Background>
									<LinearGradientBrush EndPoint="1.239,0.207" StartPoint="0.106,0.741">
										<GradientStop Color="#FF121212" Offset="0"/>
										<GradientStop Color="#FF4F4F4D" Offset="1"/>
										<GradientStop Color="#FF5A5A5A" Offset="0.42"/>
										<GradientStop Color="#FF262626" Offset="0.258"/>
										<GradientStop Color="#FF161616" Offset="0.684"/>
										<GradientStop Color="#FF1A1A1A" Offset="0.056"/>
									</LinearGradientBrush>
								</Border.Background>
								<Grid Margin="4">
									<Border x:Name="background" BorderThickness="1" CornerRadius="4">
										<Border.BorderBrush>
											<LinearGradientBrush EndPoint="0.963,0.974" StartPoint="0.051,0.04">
												<GradientStop Color="#FF5A5A5A" Offset="0"/>
												<GradientStop Color="#FF888888" Offset="1"/>
												<GradientStop Color="#FF242424" Offset="0.837"/>
												<GradientStop Color="Black" Offset="0.116"/>
											</LinearGradientBrush>
										</Border.BorderBrush>
										<Border.Effect>
											<myBoard_Framework_Effects:LightStreakEffect Scale="0.35" Direction="0.5,1"/>
										</Border.Effect>
										<Border.Background>
											<RadialGradientBrush RadiusX="0.794" RadiusY="0.794">
												<GradientStop Color="#FF090909" Offset="1"/>
												<GradientStop Color="#FF414141"/>
											</RadialGradientBrush>
										</Border.Background>
										<Grid>
											<TextBlock x:Name="_info" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="Aharoni" FontSize="24" Foreground="#F9F4F4F4" Text="no source specified" TextWrapping="Wrap">
												<TextBlock.Effect>
													<DropShadowEffect BlurRadius="13" ShadowDepth="4"/>
												</TextBlock.Effect>
											</TextBlock>
										</Grid>
									</Border>
									<Border x:Name="_browserContainer" BorderThickness="1" CornerRadius="4" Visibility="Hidden">
									<Border.BorderBrush>
											<LinearGradientBrush EndPoint="0.963,0.974" StartPoint="0.051,0.04">
												<GradientStop Color="#FF5A5A5A" Offset="0"/>
												<GradientStop Color="#FF888888" Offset="1"/>
												<GradientStop Color="#FF242424" Offset="0.837"/>
												<GradientStop Color="Black" Offset="0.116"/>
											</LinearGradientBrush>
										</Border.BorderBrush>
										<Border.Effect>
											<myBoard_Framework_Effects:LightStreakEffect Scale="10"/>
										</Border.Effect>
										<Border.Background>
											<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
												<GradientStop Color="#FF29465F" Offset="0"/>
												<GradientStop Color="#FF0C1720" Offset="1"/>
											</LinearGradientBrush>
										</Border.Background>
									</Border>
									<!--<myBoard_Framework_Controls_Navigation:BreadcrumbExplorer x:Name="_explorer"/>-->
								</Grid>
							</Border>
						</Border>
						<Custom:ConfigButton x:Name="_configBt" HorizontalAlignment="Left" Margin="5,0,0,0" VerticalAlignment="Bottom"/>
						<TextBlock VerticalAlignment="Bottom" Text="Webnet" TextWrapping="Wrap" HorizontalAlignment="Center" Margin="0,0,0,1.664" FontSize="16" FontWeight="Bold" Foreground="White"/>
						<TextBlock HorizontalAlignment="Center" Margin="0,0,0,3" VerticalAlignment="Bottom" FontSize="16" FontWeight="Bold" Foreground="#FF3E3F38" Text="Webnet" TextWrapping="Wrap"/>
						<Path x:Name="_gloss" Stretch="Fill" Margin="0,0,0,96" Data="M0.5,0.5 L295.5,0.5 295.5,74 C246,74 214,46 147,46 80,46 49.333333,99.5 0.5,99.5 z" IsHitTestVisible="False">
							<Path.Fill>
								<LinearGradientBrush EndPoint="0.366,0.686" StartPoint="0.095,0.057">
									<GradientStop Color="#18FFFFFF"/>
									<GradientStop Offset="0.982"/>
								</LinearGradientBrush>
							</Path.Fill>
						</Path>
						<!--<Cjc_ChromiumBrowser:WebBrowser x:Name="_browser" Margin="-1,0,1,0"/>-->
					</Grid>
				</Border>
			</Border>
		</Grid>
	</Grid>
</UserControl>